package com.dome.fastds.demofastds.controller;
/**
 * @author Administrator
 * @date 2021-12-28 14:08
 */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.PostConstruct;

/**
 * @ClassName IndexController
 * @Description
 * @Author Administrator
 * @Date 2021/12/28 14:08
 * @Version 1.0
 */

@Controller
public class IndexController {

    static {
        System.out.println("IndexController....");
    }

    public IndexController() {
        System.out.println("contro IndexController....");
    }

    @PostConstruct
    public void init(){
        System.out.println(" PostConstruct....");
    }

    @RequestMapping("/index")
    public String index() {

        return "index";
    }
}
